﻿CREATE TABLE [dbo].[Vendedor] (
    [Id]        INT          IDENTITY (1, 1) NOT NULL,
    [EmpresaId] INT          NOT NULL,
    [Nombre]    VARCHAR (50) NOT NULL,
    [Email]     VARCHAR (50) NULL,
    [Telefono]  VARCHAR (20) NULL,
    [Beeper]    VARCHAR (20) NULL,
    [Activo] BIT NOT NULL DEFAULT 0, 
    CONSTRAINT [PK_Vendedor] PRIMARY KEY CLUSTERED ([Id] ASC),
    CONSTRAINT [FK_Vendedor_Empresa] FOREIGN KEY ([EmpresaId]) REFERENCES [dbo].[Empresa] ([Id])
);

